package com.yonyou.pmclouds.operation;

import com.yonyou.pmclouds.basecom.entity.SuperVO;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.Date;

/**
 * @author caihfm
 * @Description 行业类型
 * @date 2018/9/6 18:35
 */
@Data
@Table(name = "opr_ds_template_type")
public class TypeVO extends SuperVO {

    public static final String PK_TYPE = "pkType";

    @Id
    private String pkType;
    private String pkIndustry;
    private String scode;
    @NotNull
    @Size(min = 1, max = 50)
    private String sname;
    private String billType;

    private String typeName;

    private String fileUrl;

    /**
     * 通用字段
     **/
    @Column(name = "pk_tenant", updatable = false)
    private String pkTenant;
    @Column(name = "creator", updatable = false)
    private String creator;
    @Column(name = "creationtime", updatable = false)
    private Date creationtime;
    private String modifier;
    private Date modifytime;

    public TypeVO() {
    }

    public TypeVO(String pkIndustry, String sname, String billType, String pkTenant, String typeName, String fileUrl) {
        this.pkIndustry = pkIndustry;
        this.sname = sname;
        this.billType = billType;
        this.pkTenant = pkTenant;
        this.typeName = typeName;
        this.fileUrl = fileUrl;
    }

    public TypeVO(String pkIndustry, String typeName, String billType, String pkTenant) {
        this.pkIndustry = pkIndustry;
        this.typeName = typeName;
        this.billType = billType;
        this.pkTenant = pkTenant;
    }
}

